package com.neusoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.mapper.FoodMapper;
import com.neusoft.po.Food;
import com.neusoft.service.FoodService;

@Service
public class FoodServiceImpl implements FoodService{
	
	@Autowired
	private FoodMapper foodMapper;

	@Override
	public List<Food> listFoodByBusinessId(Integer businessId) {
		return foodMapper.listFoodByBusinessId(businessId);
	}
	
	@Override
	public Integer setFoodPriceByFoodId(Integer foodId, Double foodprice) {
		return foodMapper.setFoodPriceByFoodId(foodId, foodprice);
	}

	@Override
	public Integer setFoodQuantityByFoodId(Integer foodId, Integer quantity) {
		return foodMapper.setFoodQuantityByFoodId(foodId, quantity);
	}
}
